﻿using ProTrack.Utility;
using System;
using System.Collections.Generic;
using System.Text;

namespace ProTrack.Entity
{
    /// <summary>
    /// 工艺组成表（工艺流程附加表）
    /// </summary>
    public class ProRouteProcess
    {
        /// <summary>
        /// 记录ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 工艺路线ID
        /// </summary>
        public long RouteId { get; set; }

        /// <summary>
        /// 工序ID
        /// </summary>
        public long ProcessId { get; set; }

        /// <summary>
        /// 工序编码
        /// </summary>
        public string ProcessCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        public string ProcessName { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public int OrderNum { get; set; }

        /// <summary>
        /// 下一个工序ID
        /// </summary>
        public long NextProcessId { get; set; }

        /// <summary>
        /// 下一个工序编码
        /// </summary>
        public string NextProcessCode { get; set; }

        /// <summary>
        /// 下一个工序名称
        /// </summary>
        public string NextProcessName { get; set; }

        /// <summary>
        /// 与下一道工序关系
        /// </summary>
        public string LinkType { get; set; }

        /// <summary>
        /// 准备时间
        /// </summary>
        public int DefaultPreTime { get; set; }

        /// <summary>
        /// 等待时间
        /// </summary>
        public int DefaultSufTime { get; set; }

        /// <summary>
        /// 甘特图显示颜色
        /// </summary>
        public string ColorCode { get; set; }

        /// <summary>
        /// 关键工序
        /// </summary>
        public string KeyFlag { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = StringHelper.GetTimeNow();

        /// <summary>
        /// 更新者
        /// </summary>
        public string Updater { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool Deleted { get; set; }
    }

}
